import 'package:backend.core/core/domain/entities/google_play/google_play_purchased_subscription_info_pause_info.dart';
import 'package:backend.purchases/domain/entities/google_play_api/google_play_api_purchased_subscription_pause_info.dart';

abstract class CreateGooglePlayPurchasedSubscriptionInfoPauseInfoFromApiOne {
  GooglePlayPurchasedSubscriptionInfoPauseInfo call({
    required GooglePlayApiPurchasedSubscriptionPauseInfo apiPauseInfo,
  });
}

class CreateGooglePlayPurchasedSubscriptionInfoPauseInfoFromApiOneImpl
    implements CreateGooglePlayPurchasedSubscriptionInfoPauseInfoFromApiOne {
  const CreateGooglePlayPurchasedSubscriptionInfoPauseInfoFromApiOneImpl();

  @override
  GooglePlayPurchasedSubscriptionInfoPauseInfo call({
    required GooglePlayApiPurchasedSubscriptionPauseInfo apiPauseInfo,
  }) {
    return GooglePlayPurchasedSubscriptionInfoPauseInfo(
      autoResumeTime: apiPauseInfo.autoResumeTime,
    );
  }
}
